//
//  HTNormalCell.m
//  TruckDriver
//
//  Created by Ting Han on 2017/9/26.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import "HTNormalCell.h"
#import "UIImageView+WebCache.h"

@interface HTNormalCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end
@implementation HTNormalCell
- (void)setNormalModel:(HTNormalModel *)normalModel{
    _normalModel = normalModel;
    self.titleLabel.text = normalModel.titleStr;
    if(normalModel.image){
        self.rightImageView.hidden = NO;
        self.rightImageView.image = normalModel.image;
        return;
    }else{
        self.rightImageView.hidden = YES;
    }
    if (normalModel.imageUrl) {
        self.rightImageView.hidden = NO;
        return;
    }else{
        self.rightImageView.hidden = YES;
    }
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}

@end
